package Cau9;

import java.awt.Graphics;
 
import java.io.Serializable;

public class Line implements Serializable {

	private static final long serialVersionUID = 1L;
	private int x1,y1;
	private int x2,y2;
	
	public Line(){
		setLine(0,0,0,0);
	}
	public void setLine(int x1,int y1,int x2,int y2){
		this.x1 = x1;
		this.x2 = x2;
		this.y1 = y1;
		this.y2 = y2;
	}
	public void drawLine(Graphics g){
		g.drawLine(x1, y1, x2, y2);
	}

}
